//
//  normalTableViewCell.m
//  分屏显示
//
//  Created by 奚旺 on 15/12/7.
//  Copyright © 2015年 奚旺. All rights reserved.
//

#import "normalTableViewCell.h"
#import "XWMain.h"
@interface normalTableViewCell ()


@property(nonatomic,strong)UILabel * titleLabel;

@end

#import "XWNormalCell.h"
@implementation normalTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel =[[UILabel alloc]init];
    
        [self.contentView addSubview:self.titleLabel];
        
        
    }
    return self;
    
    
    
}

- (void)awakeFromNib
{
    self.titleLabel =[[UILabel alloc]init];
    
    [self.contentView addSubview:self.titleLabel];
    
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 10, self.contentView.frame.size.width-20, 30);
    
}

-(void)setNormal:(XWMain *)normal

{
    
    
    
    self.titleLabel.text = normal.title;
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
